import request from "@/api/request";
import { apiClusterJava } from "@/api/root";

// 获取职体验首页模块数据
export const getHomePageData = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyHomePage/getHomePageData",
    data
  );
};
// 查询活动列表
export const getActivityTermList = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivityTerm/getActivityTermList",
    data
  );
};
// 查询用户卡类型
export const getPersonCardType = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztUser/getPersonCardType",
    data
  );
};
// 获取职体验用户默认绑卡cardType
export const getDefaultBindZtyCardType = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztUser/getDefaultBindZtyCardType",
    data
  );
};

// 活动列表
export const offlineActivitys = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/offlineActivitys",
    data
  );
};
// 上传活动照片
export const uploadFiles = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/uploadFiles",
    data
  );
};
// 照片列表
export const activityFiles = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/activityFiles",
    data
  );
};
// 照片列表
export const deleteFiles = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/deleteFiles",
    data
  );
};
// 学校列表
export const schoolList = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/schoolList",
    data
  );
};
// 班级列表
export const classList = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/classList",
    data
  );
};
// 获取用户信息
export const getInfo = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/getInfo",
    data
  );
};
// 编辑用户信息 and 绑卡
export const saveUserInfo = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/saveUserInfo",
    data
  );
};
// 搜索
export const search = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztyActivity/search",
    data
  );
};